<?php


// 事件定义文件
return [
    // 事件绑定
    'bind'      => [],

    // 事件监听
    'listen'    => [
        'AppInit'   => [],
        'HttpRun'   => [],
        'HttpEnd'   => [],
        'LogLevel'  => [],
        'LogWrite'  => [],
        // 用户日志事件
        'UserLog'   => ['app\listener\admin\UserLogListener'],
        // 会员日志事件
        'MemberLog' => ['app\listener\api\MemberLogListener'],
        'swoole.init' => [\app\listener\admin\CreateTimerListener::class],
//        'swoole.workerStart' => [\app\listener\admin\SaveSwooleListener::class],
        'swoole.websocket.user' => [\app\webscoket\handler\UserHandler::class], //socket 用户调用事件
        'swoole.websocket.admin' => [\app\webscoket\handler\AdminHandler::class], //socket 后台事件
        // 订单上架
//        'order.schedule' =>[app\listener\admin\OrderScheduleListener::class],
        // 系统派单
//        'order.assign' =>[app\listener\admin\OrderAssignListener::class],
//        'create_timer' =>[
//            app\listener\admin\OrderScheduleListener::class,// 订单上架
//            app\listener\admin\OrderAssignListener::class,// 系统派单
//        ],
    ],

    // 事件订阅
    'subscribe' => [],
];
